package com.seecen.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.seecen.pojo.entity.Agency;
import com.seecen.service.AgencyService;
import com.seecen.mapper.AgencyMapper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author dell
* @description 针对表【hm_agency】(旅行社表)的数据库操作Service实现
* @createDate 2025-10-17 16:10:10
*/
@Service
public class AgencyServiceImpl extends ServiceImpl<AgencyMapper, Agency>
        implements AgencyService{

    @Override
    public List<Agency> getAgenciesByName(String agencyName) {
        LambdaQueryWrapper<Agency> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.like(Agency::getAgencyName, agencyName);
        return this.list(queryWrapper);
    }
}



